﻿using System;
using DatingSoonMVC2008.Library;

namespace DatingSoonMVC2008.Models
{
    public interface IFacade
    {
        bool CheckCredentials(string name, string password);

        System.Collections.Specialized.StringDictionary CreateDictionary(string language);

        System.Web.UI.WebControls.ListItemCollection GetCountryList(Dico currentDictionary);

        System.Web.UI.WebControls.ListItemCollection GetRegionList(string countryValue, Dico currentDictionary);

        void Register(
            string language,
            string nickName,
            string emailAddress,
            char gender,
            char seeking,
            int countryID,
            int regionID,
            DateTime bornDate,
            string city,
            string description,
            string password,
            bool emailOptin,
            byte[] pictureContent,
            IPictureStorage pictureStorage);

        bool UserExist(string nickName);


        IdentityCard[] GetNewUsers(string language);

        IdentityCard GetUserDetail(int userID);

        IdentityCard[] FindUsers(
                                            string[] languages,
                                            int ageMax,
                                            int ageMin,
                                            string city,
                                            string gender,
                                            int countryID,
                                            int regionID,
                                            string seeking);
    }
}
